#include "ThreadPool.hpp"
#include <memory>

using namespace std;

int main()
{
    // std::unique_ptr<ThreadPool<Task>> tp(new ThreadPool<Task>());
    // tp->init();
    // tp->start();
    //for (int i = 0; i < 3; i++)
    {
        int x, y;
        char op;
        cout << "please enter x> ";
        cin >> x;
        cout << "please enter y> ";
        cin >> y;
        cout << "please enter op> ";
        cin >> op;

        Task t(x, y, op);
        (void)(ThreadPool<Task>::_gc);
        ThreadPool<Task>::getinstance()->pushtask(t);
        // tp->pushtask(t);
        sleep(1);
    }
    return 0;
}